#include "../func.h"

int main(int argc, char* argv[])
{
    int shmid;
    shmid = shmget(1234, 4096, IPC_CREAT|0600);
    if (-1 == shmid)
    {
        perror("shmget");
        return -1;
    }

    char* p = (char*)shmat(shmid, NULL, 0);
    if (p == (char*)-1)
    {
        perror("shmat");
        return -1;
    }
    while(1);
    return 0;
}
